import request from '@/utils/request'

// 查找按钮权限
export function findButtons(menuId, sysId) {
  return request({
    url: '/authority/auFunResources/queryButtons',
    method: 'get',
    params: { menuId, sysId }
  })
}

// 查找菜单权限
export function findMenus(sysId) {
  return request({
    url: '/authority/auFunResources/queryMenus',
    method: 'get',
    params: { sysId }
  })
}

// 查找机构
export function findOrgs(data) {
  return request({
    url: '/authority/auFunResources/queryOrgs',
    method: 'get',
    params: {},
    data
  })
}

// 查找平台权限
export function findPlatforms(data) {
  return request({
    url: '/authority/auFunResources/queryPlatforms',
    method: 'get',
    params: {},
    data
  })
}

